package com.home.web.gwt.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.home.web.gwt.client.GenService;
import com.home.web.gwt.server.com.home.dao.mock.ContactDaoMock;
import com.home.web.gwt.shared.Contact;

import java.util.List;

/**
 * User: volyn
 * Date: 29.01.12
 * Time: 16:03
 */
public class GenServiceImpl extends RemoteServiceServlet implements GenService {
    @Override
    public Integer generate() {
        return (int)(Math.random()*100);
    }

    @Override
    public List<Contact> getContactList() {
        return (new ContactDaoMock().getContactList());
    }
}